package com.sbm.app.listener;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;

/**
 * 环境初始化完成，装载配置事件
 *
 * @author Administrator
 */
public class AppEnvPreparedListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> {
    @Override
    public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
        System.out.println("["+new SimpleDateFormat("HH:mm:ss").format(new Date())+"] 环境加载完成，开始加载配置...");
    }
}
